class A(object):
    def __init__(self, name):
        self.name = name

    # 类方法类名调用即可
    # 必须有参数,cls==A
    @classmethod
    def do_something(cls):
        print('hello python', cls.do_something1())

    # 静态方法类名调用即可
    # 有无参数均可
    @staticmethod
    def do_something1():
        print('hello')

    # 实例方法必须由实例对象调用
    def do_something2(self):
        print('hello', self.name)


A.do_something()
aa = A('张三')
aa.do_something2()
